package com.timguan.render.dao.manager.cms;

import com.timguan.render.dao.domain.cms.CmsRouteDO;
import com.timguan.render.dao.domain.cms.CmsRouteDOExample;
import com.timguan.render.dao.persistence.cms.CmsRouteDOMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by gkq on 15/11/17.
 */
public class CmsRouteManagerImpl {
    @Resource
    private CmsRouteDOMapper cmsRouteDOMapper;


    public int countByExample(CmsRouteDOExample condition) {
        int count = 0;
        if (condition == null) {
            return count;
        }
        count = cmsRouteDOMapper.countByExample(condition);
        return count;
    }

    public List<CmsRouteDO> selectByExample(CmsRouteDOExample condition) {
        List<CmsRouteDO> cmsRouteDOs = null;
        if (condition == null) {
            return null;
        }
        cmsRouteDOs = cmsRouteDOMapper.selectByExample(condition);
        return cmsRouteDOs;
    }
}
